//
//  CustomDropdownMenuView.h
//  NovartisPPH
//
//  Created by Sidney on 13-10-10.
//  Copyright (c) 2013年 iSoftstone infomation Technology (Group) Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
typedef enum DROP_DOWN_MENU_VIEW_TYPE
{
    DROP_DOWN_MENU_VIEW_TYPE_DEFAULT,//主菜单展开
    
}DROP_DOWN_MENU_VIEW_TYPE;

@protocol CustomDropdownMenuViewDelegate;


@interface CustomDropdownMenuView : UIView


@property (nonatomic , assign) DROP_DOWN_MENU_VIEW_TYPE mType;
@property (nonatomic , assign) id <CustomDropdownMenuViewDelegate> delegate;
@property (nonatomic , assign) BOOL isOpened;

- (id)initWithContentSize:(CGSize)size type:(DROP_DOWN_MENU_VIEW_TYPE)type;
- (void)setMenuData:(NSArray *)data;
- (void)openSubMenuWithPostion:(CGPoint)postion;
- (void)closed;

//省
- (void)setProvinceData:(NSArray *)data;




@end

@protocol CustomDropdownMenuViewDelegate <NSObject>

@optional

- (void)dropdownMenuColosed:(CustomDropdownMenuView *)view;
- (void)cellViewSelected:(CustomDropdownMenuView *)view data:(NSDictionary *)data;

@end
